package com.zyh.service.impl;

import com.zyh.entity.Sao;
import com.zyh.mapper.SaoMapper;
import com.zyh.service.SaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaoServiceImpl implements SaoService {
    @Autowired
    private SaoMapper mapper;

    @Override
    public void insert(Sao sao) {
        mapper.insert(sao);
    }

    @Override
    public void deleteMany(Integer[] ids) {
        mapper.deleteMany(ids);
    }

    @Override
    public void deleteById(Integer id) {
        mapper.deleteById(id);
    }

    @Override
    public void updateById(Sao sao) {
        mapper.updateById(sao);
    }

    @Override
    public Sao selectById(Integer id) {
        return mapper.selectById(id);
    }

    @Override
    public List<Sao> selectAll() {
        return mapper.selectAll();
    }
}
